package com.liuzhengting.common.model;

/**
 * 通用错误码
 * @author caiwenhao
 * @date 2020年3月11日 上午10:47:56 
 * @see [相关类/方法]
 */
public enum ErrorCode 
{
	INVALID_REQ_PARAMS("000000", "参数类型错误!"),
	USER_ACCOUNT_EXPIRED("000101", "账号过期!"),
	USER_CREDENTIALS_ERROR("000102", "密码错误!"),
	USER_CREDENTIALS_EXPIRED("000103", "密码过期!"),
	USER_ACCOUNT_DISABLE("000104", "账号不可用!"),
	USER_ACCOUNT_LOCKED("000105", "账号锁定!"),
	USER_ACCOUNT_NOT_EXIST("000106", "用户不存在!"),
	USER_COMMON_FAIL("000199", "其他错误!"),
	USER_UNAUTHORIZED_USER("000198", "匿名用户访问无权限资源时的异常"),
	;

    private String code;

    private String msg;

    /** 产品错误码前缀 */
    private ErrorCode(String errCode, String errMsg)
    {
        this.code = errCode;
        this.msg = errMsg;
    }

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
